package com.qyhl.school.school.home.search;


import com.qyhl.webtv.commonlib.entity.school.SchoolSearchBean;

public class SchoolSearchPresenter implements SchoolSearchContract.SchoolSearchPresenter {
    private SchoolSearchContract.SchoolSearchView mView;
    private SchoolSearchModel mModel;

    public SchoolSearchPresenter(SchoolSearchContract.SchoolSearchView mView) {
        this.mView = mView;
        this.mModel = new SchoolSearchModel(this);
    }


    @Override
    public void doSearch(String keyword) {
        mModel.doSearch(keyword);
    }

    @Override
    public void setData(SchoolSearchBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
